import request from '@/utils/request'

// 获取温湿度登记列表
export function getList(query) {
  return request({
    url: '/archive/humiture/list',
    method: 'get',
    params: query
  })
}

// 新增温湿度登记列表
export function addHumiture(data) {
  return request({
    url: '/archive/humiture',
    method: 'post',
    data: data
  })
}

// 获取温湿度登记详情
export function getDetail(id) {
  return request({
    url: '/archive/humiture/'+id,
    method: 'get'
  })
}

// 修改温湿度登记
export function updateHumiture(data) {
  return request({
    url: '/archive/humiture',
    method: 'put',
    data: data
  })
}

// 删除温湿度登记 /archive/humiture/194298216169213952
export function deleteHumiture(id) {
  return request({
    url: '/archive/humiture/'+id,
    method: 'delete'
  })
}
